package com.atguigu.gulimall.seckill.service;

import com.atguigu.gulimall.seckill.to.SeckillSkuRedisTo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface SeckillService {

    void uploadSeckillSkulatest3Days();

    //返回当前时间可以参与的秒杀商品信息
    List<SeckillSkuRedisTo> getCurrentSeckillSkus();

    //获取某一商品的预告信息
    SeckillSkuRedisTo getSkuSeckilInfo(Long skuId);

    /**
     * 当前商品进行秒杀（秒杀开始）
     * @param killId
     * @param key
     * @param num
     * @return
     */
    String kill(String killId, String key, Integer num) throws InterruptedException;
}
